package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.WendaQuestion;
import cn.wolfcode.luowowo.article.query.WendaQuestionQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WendaQuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(WendaQuestion record);

    WendaQuestion selectByPrimaryKey(Long id);

    List<WendaQuestion> selectAll();

    int updateByPrimaryKey(WendaQuestion record);

    void insertQuestionAndTagRelation(@Param("qId") Long qId, @Param("tagId") Long tagId);

    List<WendaQuestion> selectForList(WendaQuestionQuery qo);

    List<WendaQuestion> selectForQueryList(WendaQuestionQuery qo);
}